package com.rw.factory;

import com.rw.pojo.FatherTest;
import com.rw.pojo.TestSubA;
import com.rw.pojo.TestSubB;

/**
 * @author rabit
 */
public class TestFactory {
    //工厂
    public static TestSubA getInstance(){
        TestSubA a = new TestSubA();
        a.setName("TestFactory创建的A");
        return a;
    }
    public static TestSubB getInstance2(){
        TestSubB a = new TestSubB();
        return a;
    }
}
